package com.example.a10928.weifriend.data.pref;

import android.content.Context;
import android.content.SharedPreferences;

import com.google.gson.Gson;

/**
 * Created by Chuang on 2018/3/2.
 * 请声明此类的作用，如无声明则留null
 */

public class BasePrefManager {

    protected Context mContext;
    protected SharedPreferences mPref;
    protected Gson mGson;

    public BasePrefManager(Context context, SharedPreferences preferences, Gson gson) {
        mContext = context;
        mPref = preferences;
        mGson = gson;
    }

    public void clear() {
        mPref.edit().clear().apply();
    }
}
